# 定义函数  断言
def assert_tools(resp,status_code,success,code,message):
    assert status_code == resp.status_code
    assert success == resp.json().get("success")
    assert code == resp.json().get("code")
    assert message in resp.json().get("message")